package com.bluemobi.system.ctl;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bluemobi.framework.base.BaseCtl;

/**
 * 跳转到系统主页Ctl
 *
 * @author wangchen
 */
@Controller
@RequestMapping(value = "/system")
public class SystemCtl extends BaseCtl {

	/**
	 * 跳转到系统模块首页
	 */
	@RequestMapping(value = "")
	public String index() {
		return "/system/index";
	}

	/**
	 * 踢出登录
	 *
	 * @return String
	 */
	@RequestMapping(value = "kicked")
	public String kicked() {
		setSession("msg", "您的账户已在其他地方登录");
		return "redirect:/";
	}
}
